/**
 * scalar.js
 * 
 * Useful scalar math functions.
 * 
 * @author A.Weissflog
 *
 * (C) 2010 A.Weissflog
 */

/**
 * Constructor
 */
function Scalar()
{ }

/**
 * Convert degree to rad.
 * 
 * @param {Number} deg
 * @return {Number}
 */
Scalar.Deg2Rad = function(deg)
{
	return (deg * Math.PI) / 180.0;
}

/**
 * Convert rad to degree.
 * 
 * @param {Number} rad
 * @return {Number}
 */
Scalar.Rad2Deg = function(rad)
{
	return (rad * 180.0) / Math.PI;
}
